﻿<%@ Page Title="Employee Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="EmployeePage.aspx.cs" Inherits="WHM3.EmployeePage.EmployeePage" %>

<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    <hgroup class="title">
        <h1><%: Title %>.</h1>
    </hgroup>
    <section id="loginForm"> 
        <asp:Label ID="HelloArgs" runat="server"/><br/>
        <asp:Label ID="nameLabel" runat="server"/><br/>
        <asp:Label ID="PositionLabel" runat="server"/>
        <div id="errMessage" runat="server">
        
            <asp:Label runat="server" ID="eMsgText" ForeColor="Red" Font-Size="Medium" Visible="false"/>
        
        </div>
        
        <div id="mainDiv">

            <p>
                <asp:Button ID="Button8" runat="server"  Text="Make Coffee" OnClick="makeCoffe" Width="164px" />
            </p>

            <p>
                <asp:Button ID="Button21" runat="server" CommandName="checkin" Text="check into work" OnClick="checkIntoWork" Width="164px" />
            </p>

            <p>
                <asp:Button ID="Button31" runat="server" CommandName="checkout" Text="check out of work" OnClick="checkOutOfWork" Width="164px" />
            </p>

            <p>
                <asp:Button ID="Button51" runat="server" CommandName="changePassword1" Text="change password" OnClick="changePasswordDivOpener" Width="164px" />
            </p>
             <p>
                <asp:Button ID="Button2" runat="server" CommandName="addNewShift" Text="Add new Shift" OnClick="addNewShiftClick" Width="164px" />
            </p>


        </div>

        <div id="changePasswordDiv" runat="server" visible="false">
            <asp:Label ID="newPass" runat="server" Text="new Password:" /><asp:TextBox runat="server" ID="newPassTextBox" />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="newPassTextBox" CssClass="field-validation-error" ErrorMessage="new password is required" />
            <br/><asp:Button runat="server" ID="changePasswordBTN" Text="change my password" OnClick="changePassword"/>
        </div>
        
    </section>

        <section id="socialLoginForm">
            <div runat="server" id="myInfo" visible="true"> 
                <asp:Label ID="shiftErrorLabel" runat="server" ForeColor="Red" Font-Size="Medium"/>                   
               
                <form id="Form1">
                    <asp:Calendar ID="Calendar1" DayNameFormat="Full" runat="server"
                        OnDayRender="Calendar1_DayRender" 
                        OnSelectionChanged="Selection_Change"                     
                        SelectionMode="DayWeekMonth"            
                        SelectMonthText="*"
                        SelectWeekText="->"
                        OnClientClick="aspnetForm.target ='_blank';"/>              
                    <SelectorStyle BackColor="#f5f5f5" />
                </form>   

                <div id="editShiftDiv" runat="server" visible="false">
                    
                    <asp:Label ID="infoLabel1" Text="<br />From<br />" Visible ="false" runat="server"></asp:Label>
                    <asp:TextBox ID="editShiftTextBox1" runat="server" Visible="false"></asp:TextBox>
                    <asp:Label ID="editShiftLabel1" runat="server" Visible="false"></asp:Label>
                    
                    <asp:Label ID="infoLabel2" Text="<br />To<br />" Visible ="false" runat="server"></asp:Label>
                    <asp:TextBox ID="editShiftTextBox2" runat="server" Visible="false"></asp:TextBox>
                    <asp:Label ID="editShiftLabel2" runat="server" Visible="false"></asp:Label>                      

                    <asp:Label ID="infoLabel3" Text="<br />From<br />" Visible ="false" runat="server"></asp:Label>
                    <asp:TextBox ID="editShiftTextBox3" runat="server" Visible="false"></asp:TextBox>
                    <asp:Label ID="editShiftLabel3" runat="server" Visible="false"></asp:Label>
                    
                    <asp:Label ID="infoLabel4" Text="<br />To<br />" Visible ="false" runat="server"></asp:Label>
                    <asp:TextBox ID="editShiftTextBox4" runat="server" Visible="false"></asp:TextBox>
                    <asp:Label ID="editShiftLabel4" runat="server" Visible="false"></asp:Label>   
                    
                    <asp:Label ID="infoLabel5" Text="<br />From<br />" Visible ="false" runat="server"></asp:Label>
                    <asp:TextBox ID="editShiftTextBox5" runat="server" Visible="false"></asp:TextBox>
                    <asp:Label ID="editShiftLabel5" runat="server" Visible="false"></asp:Label>
                    
                    <asp:Label ID="infoLabel6" Text="<br />To<br />" Visible ="false" runat="server"></asp:Label>
                    <asp:TextBox ID="editShiftTextBox6" runat="server" Visible="false"></asp:TextBox>
                    <asp:Label ID="editShiftLabel6" runat="server" Visible="false"></asp:Label> 
                    
                    <asp:Label ID="infoLabel7" Text="<br />From<br />" Visible ="false" runat="server"></asp:Label>
                    <asp:TextBox ID="editShiftTextBox7" runat="server" Visible="false"></asp:TextBox>
                    <asp:Label ID="editShiftLabel7" runat="server" Visible="false"></asp:Label>
                    
                    <asp:Label ID="infoLabel8" Text="<br />To<br />" Visible ="false" runat="server"></asp:Label>
                    <asp:TextBox ID="editShiftTextBox8" runat="server" Visible="false"></asp:TextBox>
                    <asp:Label ID="editShiftLabel8" runat="server" Visible="false"></asp:Label>   
                    
                    <asp:Label ID="infoLabel9" Text="<br />From<br />" Visible ="false" runat="server"></asp:Label>
                    <asp:TextBox ID="editShiftTextBox9" runat="server" Visible="false"></asp:TextBox>
                    <asp:Label ID="editShiftLabel9" runat="server" Visible="false"></asp:Label>
                    
                    <asp:Label ID="infoLabel10" Text="<br />To<br />" Visible ="false" runat="server"></asp:Label>
                    <asp:TextBox ID="editShiftTextBox10" runat="server" Visible="false"></asp:TextBox>
                    <asp:Label ID="editShiftLabel10" runat="server" Visible="false"></asp:Label>   
                    
                    <asp:Label ID="infoLabel11" Text="<br />From<br />" Visible ="false" runat="server"></asp:Label>
                    <asp:TextBox ID="editShiftTextBox11" runat="server" Visible="false"></asp:TextBox>
                    <asp:Label ID="editShiftLabel11" runat="server" Visible="false"></asp:Label>
                    
                    <asp:Label ID="infoLabel12" Text="<br />To<br />" Visible ="false" runat="server"></asp:Label>
                    <asp:TextBox ID="editShiftTextBox12" runat="server" Visible="false"></asp:TextBox>
                    <asp:Label ID="editShiftLabel12" runat="server" Visible="false"></asp:Label>   
                    
                    <asp:Label ID="infoLabel13" Text="<br />From<br />" Visible ="false" runat="server"></asp:Label>
                    <asp:TextBox ID="editShiftTextBox13" runat="server" Visible="false"></asp:TextBox>
                    <asp:Label ID="editShiftLabel13" runat="server" Visible="false"></asp:Label>
                    
                    <asp:Label ID="infoLabel14" Text="<br />To<br />" Visible ="false" runat="server"></asp:Label>
                    <asp:TextBox ID="editShiftTextBox14" runat="server" Visible="false"></asp:TextBox>
                    <asp:Label ID="editShiftLabel14" runat="server" Visible="false"></asp:Label>   
                    
                    <asp:Label ID="infoLabel15" Text="<br />From<br />" Visible ="false" runat="server"></asp:Label>
                    <asp:TextBox ID="editShiftTextBox15" runat="server" Visible="false"></asp:TextBox>
                    <asp:Label ID="editShiftLabel15" runat="server" Visible="false"></asp:Label>
                    
                    <asp:Label ID="infoLabel16" Text="<br />To<br />" Visible ="false" runat="server"></asp:Label>
                    <asp:TextBox ID="editShiftTextBox16" runat="server" Visible="false"></asp:TextBox>
                    <asp:Label ID="editShiftLabel16" runat="server" Visible="false"></asp:Label>   
                    
                    <asp:Label ID="infoLabel17" Text="<br />From<br />" Visible ="false" runat="server"></asp:Label>
                    <asp:TextBox ID="editShiftTextBox17" runat="server" Visible="false"></asp:TextBox>
                    <asp:Label ID="editShiftLabel17" runat="server" Visible="false"></asp:Label>
                    
                    <asp:Label ID="infoLabel18" Text="<br />To<br />" Visible ="false" runat="server"></asp:Label>
                    <asp:TextBox ID="editShiftTextBox18" runat="server" Visible="false"></asp:TextBox>
                    <asp:Label ID="editShiftLabel18" runat="server" Visible="false"></asp:Label>   
                    
                    <asp:Label ID="infoLabel19" Text="<br />From<br />" Visible ="false" runat="server"></asp:Label>
                    <asp:TextBox ID="editShiftTextBox19" runat="server" Visible="false"></asp:TextBox>
                    <asp:Label ID="editShiftLabel19" runat="server" Visible="false"></asp:Label>
                    
                    <asp:Label ID="infoLabel20" Text="<br />To<br />" Visible ="false" runat="server"></asp:Label>
                    <asp:TextBox ID="editShiftTextBox20" runat="server" Visible="false"></asp:TextBox>
                    <asp:Label ID="editShiftLabel20" runat="server" Visible="false"></asp:Label>                        
                    <asp:Button ID="testButton" Text="Save changes" OnClick="saveChanges" runat="server" />
                    <asp:Label ID="testLabel" Text="No shifts to show, tried adding one?" runat="server" Visible="false"></asp:Label> 
                </div>
      
            </div>  
        </section>
    <section id="socialLoginForm">
        <div id="shiftalendar" runat="server" visible="false">
             <p>
                <asp:Label ID="Label1" runat="server" Text="Add new shift" Font-Size="Medium"></asp:Label>
            </p>
            <form id="Form2">
                    <asp:Calendar ID="Calendar2" DayNameFormat="Full" runat="server"
                        OnDayRender="Calendar1_DayRender" 
                        OnSelectionChanged="Selection_Change2"                     
                        SelectionMode="DayWeekMonth"            
                        SelectMonthText="*"
                        SelectWeekText="->"
                        OnClientClick="aspnetForm.target ='_blank';"/>              
                    <SelectorStyle BackColor="#f5f5f5" />
                </form> 
        </div>
        <div id="addNewShift" runat="server" visible="false">            
            <p>
                <asp:Label ID="addNewShiftMSG" runat="server" ForeColor="Red" Font-Size="Medium"></asp:Label>
            </p>
             
            required format: HH:MM <br />            
            
            FROM:<br /> 
            <asp:TextBox ID="addNewShiftFrom" runat="server" ></asp:TextBox>
            <br />TO:<br /> 
            <asp:TextBox ID="addNewShiftTo" runat="server" ></asp:TextBox>

            <asp:Button ID="Button1" Text="Add new shift" OnClick="addNewShiftFunction" runat="server" /> 
        </div>
    </section>

</asp:Content>
